﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/Edit1.master" AutoEventWireup="true"
    CodeBehind="VBusiEdit.aspx.cs" Inherits="MaluJg.web.Villages.VBusiEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" src="../Scripts/jquery.js"></script>

    <script>
        function check() {
            var valid = true;
            $("#SpYear").html("");
            $("#SpYuSuan").html("");
            $("#SpYsJe").html("");
            if ($.trim($("#<%=tbYear1.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYear").html("必填");
            }
            else {
                valid = /^\d{4}/.test($.trim($("#<%=tbYear1.ClientID %>").val()));
                if (!valid) {
                    $("#SpYear").html("年份有误");
                }
            }
            if ($.trim($("#<%=tbYuSuan.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYuSuan").html("必填");
            }
            if ($.trim($("#<%=tbYsJe.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYsJe").html("必填");
            }
            else {
                valid = /^\d+(\.\d+)?$/.test($.trim($("#<%=tbYsJe.ClientID %>").val()));
                if (!valid) {
                    $("#SpYsJe").html("金额必须为数字");
                }
            }
            return valid;
        }
        function check2() {
            var valid = true;
            $("#SpYear2").html("");
            $("#SpYuSuan2").html("");
            $("#SpYsJe2").html("");
            if ($.trim($("#<%=tbYear2.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYear2").html("必填");
            }
            else {
                valid = /^\d{4}/.test($.trim($("#<%=tbYear2.ClientID %>").val()));
                if (!valid) {
                    $("#SpYear2").html("年份有误");
                }
            }
            if ($.trim($("#<%=tbYuSuan2.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYuSuan2").html("必填");
            }
            if ($.trim($("#<%=tbYsJe2.ClientID %>").val()) == '') {
                valid = false;
                $("#SpYsJe2").html("必填");
            }
            else {
                valid = /^\d+(\.\d+)?$/.test($.trim($("#<%=tbYsJe2.ClientID %>").val()));
                if (!valid) {
                    $("#SpYsJe2").html("金额必须为数字");
                }
            }
            return valid;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ToolBarContentPlaceHolder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <table border="0" cellspacing="0" cellpadding="2">
        <tr>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnSave" OnClick="lbtnSave_Click">
                    <span><img src="../Images/Icon/Object/File-add.gif" /></span><span>添加</span></asp:LinkButton>
                </div>
            </td>
            <td class="Fg">
                <img src="../Images/FgLine.gif" alt="" />
            </td>
            <td class="ToolMenuEdit">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)"
                    onclick="window.close();">
                    <span>
                        <img src="../Images/Icon/Object/File-delete.gif" alt="关闭" /></span><span>关闭</span>
                </div>
            </td>
           
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FieldContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="commandTable" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr>
                    <td class="FieldName" width="130">
                        <span>&nbsp;村名：</span>
                    </td>
                    <td class="FieldInput" width="250">
                        <asp:TextBox ID="tbVillage" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox>
                        &nbsp; <span class="Alter">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                            runat="server" ControlToValidate="tbVillage">必填</asp:RequiredFieldValidator>
                    </td>
                    <td class="FieldName" width="130">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;前言：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbPreContent" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;概况：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbOverView" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;村委会任期目标：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbRenQiTarget" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;村委会成员分工：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbDivideWork" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;村民自治工作领导小组和村务监督、民主理财小组组成：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbComponent" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;村委会年度工作目标：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbYearTarget" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;村干部评议及报酬：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbReward" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;计划生育及房屋翻建：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbHousing" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;经济项目承包及集体财产租赁：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbPropertyRent" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;村实事项目：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbProjects" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;村财务收支：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbBalances" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;民主理财小组理财情况：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbFinancing" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;征地补偿费的管理使用：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbEarchCompensationUse" Rows="4" TextMode="MultiLine" runat="server"
                            CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;业务招待及外出费用：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbOuting" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;社会救助情况：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbHelps" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;村民代表会议决议及实施情况：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbPolicyExecution" Rows="4" TextMode="MultiLine" runat="server"
                            CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="FieldName">
                        <span>&nbsp;基建工程预算及发包：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbConstructionProject" Rows="4" TextMode="MultiLine" runat="server"
                            CssClass="InputLarge"></asp:TextBox>
                    </td>
                    <td class="FieldName">
                        <span>&nbsp;其他需要公开的事项：</span>
                    </td>
                    <td class="FieldInput">
                        <asp:TextBox ID="tbOthers" Rows="4" TextMode="MultiLine" runat="server" CssClass="InputLarge"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="TitleBar" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr class="FTitle">
                    <td>
                        <div class="MainTitle">
                            财务收支预算</div>
                        
                    </td>
                    <td align="right">
                        <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                            <asp:LinkButton runat="server" ID="btnAdd" CausesValidation="false" OnClick="btnAdd_Click"
                                OnClientClick="return check()">
                        <span >
                            <img src="../Images/add.png" alt="单条添加" /></span><span>单条添加</span></asp:LinkButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        年度：<asp:TextBox ID="tbYear1" Width="100px" runat="server" CssClass="InputSmall"></asp:TextBox><span
                            class="Alter">*</span> <span id="SpYear" style="color: Red"></span>预算名称：<asp:TextBox
                                ID="tbYuSuan" Width="180px" runat="server" CssClass="InputSmall" MaxLength="50"></asp:TextBox><span
                                    class="Alter">*</span><span id="SpYuSuan" style="color: Red"></span>
                        预算金额：<asp:TextBox ID="tbYsJe" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox><span
                            class="Alter">*</span><span id="SpYsJe" style="color: Red"></span>
                        <asp:TextBox runat="server" ID="tbID1" style="display:none"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                <tr align="left">
                    <td width="30px">
                        &nbsp;
                    </td>
                    <td align="center" width="200">
                        年度
                    </td>
                    <td align="center">
                        预算名称
                    </td>
                    <td align="center" width="200">
                        预算金额
                    </td>
                    <td width="100px">
                        &nbsp;
                    </td>
                </tr>
                <asp:Repeater ID="rptItemList" runat="server" OnItemCommand="rptItemList_ItemCommand"
                    OnItemDataBound="rptItemList_ItemDataBound">
                    <ItemTemplate>
                        <tr id="TableRow1_<%# Container.ItemIndex%>">
                            <td align="center">
                                &nbsp;
                            </td>
                            <td align="center">
                                &nbsp;&nbsp;<%# DataBinder.Eval(Container.DataItem, "Year")%>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Name")%>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Amount")%>
                            </td>
                            <td align="center">
                                &nbsp;<asp:LinkButton ID="lbtnDelete" runat="server" OnClientClick="return confirm('确认删除？')" CommandName="Delete" CausesValidation="false"><span><img src="../Images/Icon/Action/delete.gif" alt="删除" /></span></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit" CausesValidation="false"><span><img src="../Images/Icon/Action/edit.gif" alt="编辑" /></span></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <table id="Table1" border="0" cellspacing="0" cellpadding="0" class="FormTable tablefix"
                width="100%">
                <tr class="FTitle">
                    <td>
                        <div class="MainTitle">
                            财务收支结算</div>
                    </td>
                    <td align="right">
                        <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                            <asp:LinkButton runat="server" ID="btnAdd2" CausesValidation="false" OnClick="btnAdd2_Click"
                                OnClientClick="return check2()">
                        <span >
                            <img src="../Images/add.png" alt="单条添加" /></span><span>单条添加</span></asp:LinkButton>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        年度：<asp:TextBox ID="tbYear2" Width="100px" runat="server" CssClass="InputSmall"></asp:TextBox><span
                            class="Alter">*</span><span id="SpYear2" style="color: Red"></span> 结算名称：<asp:TextBox
                                ID="tbYuSuan2" Width="180px" runat="server" CssClass="InputSmall" MaxLength="50"></asp:TextBox><span
                                    class="Alter">*</span><span id="SpYuSuan2"" " style="color: Red"></span>
                        结算金额：<asp:TextBox ID="tbYsJe2" Width="180px" runat="server" CssClass="InputSmall"></asp:TextBox><span
                            class="Alter">*</span><span id="SpYsJe2" style="color: Red"></span>
                        <asp:TextBox runat="server" ID="tbID2" style="display:none"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                <tr align="left">
                    <td width="30px">
                        &nbsp;
                    </td>
                    <td align="center" width="200">
                        年度
                    </td>
                    <td align="center">
                        结算名称
                    </td>
                    <td align="center" width="200">
                        结算金额
                    </td>
                    <td width="100px">
                        &nbsp;
                    </td>
                </tr>
                <asp:Repeater ID="rptItemList2" runat="server" OnItemCommand="rptItemList2_ItemCommand"
                    OnItemDataBound="rptItemList2_ItemDataBound">
                    <ItemTemplate>
                        <tr id="TableRow2_<%# Container.ItemIndex%>">
                            <td align="center">
                                &nbsp;
                            </td>
                            <td align="center">
                                &nbsp;&nbsp;<%# DataBinder.Eval(Container.DataItem, "Year")%>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Name")%>
                            </td>
                            <td align="center">
                                <%# DataBinder.Eval(Container.DataItem, "Amount")%>
                            </td>
                            <td align="center">
                                &nbsp;<asp:LinkButton ID="lbtnDelete" runat="server" OnClientClick="return confirm('确认删除？')" CommandName="Delete" CausesValidation="false"><span><img src="../Images/Icon/Action/delete.gif" alt="删除" /></span></asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="lbtnEdit" runat="server" CommandName="Edit" CausesValidation="false"><span><img src="../Images/Icon/Action/edit.gif" alt="编辑" /></span></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DescriptionContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="server">
</asp:Content>
